icon-theme: support loading symbolic GFileIcons from generic URIs
authorCosimo Cecchi <cosimoc@gnome.org>
Sun, 28 Oct 2012 19:01:30 +0000 (15:01 -0400)
committerCosimo Cecchi <cosimoc@gnome.org>
Wed, 31 Oct 2012 15:53:50 +0000 (11:53 -0400)
commit86ecf54139874e5e2eee8bfd55b93e28f969bf72
tree9bef23be41ba1c936d6b3fd1141bb548c605a619
parent2e287576b4c197350908251b99e08cdc4b6840e7
icon-theme: support loading symbolic GFileIcons from generic URIs

Right now we support loading and recoloring symbolic GFileIcons, but
only if the underlying GFile has a local path. This breaks when the
GFileIcon is loaded from a GResource, which is a reasonable option for an
application that wants to ship a custom symbolic icon.

This patch changes GtkIconInfo to store a GFile together with the file
path, and changes the symbolic icon lookup code to use the GFile URI,
which transparently makes the code work also for GResources.

https://bugzilla.gnome.org/show_bug.cgi?id=687059
gtk/gtkicontheme.c